package com.wang.test.demo.putong;

import cn.hutool.json.JSONUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Debug {


    public static void main(String[] args) {
        debugStream();
       // debugCondition();
    }

    public static void debugStream(){

        List<Integer> list = Arrays.asList(1,20,21,44,56);

        list.stream()
                .filter(x -> x > 21)
                .map(x -> x + 100)
                .forEach(System.out::println);
    }

    public static void debugCondition(){
        List<Integer> list = Arrays.asList(1,20,21,44,56,22,12,345);
        for (Integer integer : list){
            System.out.println(integer);
        }
    }
}
